﻿@model IEnumerable<Yunwei.Domain.Models.Restaurant>

@{
    ViewBag.Title = "餐馆列表";
}

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">餐馆列表</h1>
    </div>
    <div class="col-lg-6">
        <a class="btn btn-primary btn-circle" href="/Admin/Restaurant/Add"><i class="fa fa-plus"></i></a>
    </div>
</div>


<table class="table">
    <tr>
        <th>
            餐馆编号
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Contact)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Address)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Phone)
        </th>
        <th>
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Id)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Contact)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Address)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Phone)
        </td>
        <td>
            @Html.ActionLink("查看", "Details", new { id = item.Id }) |
            @Html.ActionLink("编辑", "Edit", new { id=item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id }) |
            @Html.ActionLink("管理", "Index", new { id = item.Id, Area = "RRShop", controller = "Home", })
        </td>
    </tr>
}

</table>
